Automatically look up and cache a relevant service
Usage:
class someClass(SEF.Service):
thingINeed = SEF.bindTo("path.to.service")
someClass can then refer to self.thingINeed instead of
calling self.getService("path.to.service") repeatedly.
Methods
|
|
__init__
computeValue
|
|
__init__
|
__init__ ( self, targetName )
|
|
computeValue
|
computeValue (
self,
obj,
instanceDict,
attrName,
)
Exceptions
|
|
NameError("%s not found binding %s" %( self.targetName, attrName ) )
|
|
|